import React from 'react'
import { View, Text,Image} from '@tarojs/components'
import './index.less'

export default function Iconcard(props) {
  let type = {
    hot:'https://tpc666666.oss-cn-shanghai.aliyuncs.com/fire.png',
  }
  return (
    <View className='icon_box' onClick={()=>props.goto(props.text)}>
      {props.type&&<image src={type[props.type]} mode='aspectFit' ></image>}
      <Text>{props.text}</Text>
    </View>
  )
}
